package main

import (
	"fmt"
	"sync"
)

type SSE struct {
	Event string
	Id    string
	Data  interface{}
}

func main() {
	var myMapName sync.Map
	//myMapName.Store("xiaoming", 6)
	//myMapName.Store("anxing", 19)
	//myMapName.Store("xiaohei", 7)
	fmt.Println("刚开始myMapName为：", myMapName)
	if value, isFind := myMapName.Load(nil); isFind {
		fmt.Println("sync.MapLoad加载的值是：", value)
	}

	myMapName.Store(nil, nil)

	//SSE

	data := nil.(string)
	fmt.Println(data)
}
